﻿@model ITProject.WebUI.Models.ProjectAdmin.ProjectAdminChangeTaskStatusViewModel
@{
    ViewBag.Title = "Zmiana statusu zadania";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Panel administracyjny projektu @Model.ProjectName</h2>



<div class="Pmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectMenuControl,
new ITProject.WebUI.Models.Project.ProjectMenuViewModel { ProjectName = Model.ProjectName, Role = ITProject.Domain.UserRole.Supervisor })
</div>



<div class="PAmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectAdminMenu, new List<string> { "Z", Model.ProjectName })
@*@Html.ActionLink("Zarządzaj użytkownikami",MVC.ProjectAdmin.ActionNames.ManageTeam, MVC.ProjectAdmin.Name, new { projectName = Model }, null)*@
</div>
<div class="PAplane">

@using (Html.BeginForm("ChangeTaskStatus", "ProjectAdmin", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        @Html.HiddenFor(model => model.ProjectName)
        @Html.HiddenFor(model => Model.TaskId)
        <legend>Zmiana statusu wersji projektu</legend>
        <div class="editor">
            <div class="editor-label">
                @Html.LabelFor(model => model.TaskName)
            </div>
            <div class="editor-field">
                @Html.DisplayFor(model=>Model.TaskName)
            </div>
        </div>
        <div class="editor">
            <div class="editor-label">
                @Html.LabelFor(model => model.Comment)
            </div>
            <div class="editor-field">
                @Html.TextAreaFor(model => model.Comment, new { @class = "input" })
                @Html.ValidationMessageFor(model => model.Comment)
            </div>
        </div>
                <div class="editor">
            <div class="editor-label">
                @Html.LabelFor(model => model.ReturnStatus)
            </div>
            <div class="editor-field">
            @Html.DropDownListFor(model => model.ReturnStatus, Model.StatusList, new { @class = "input" })
               @* @Html.DropDownListFor(model=>model.SelectProjectUser,Model.ProjectUsers, new { @class = "input" })*@
            </div>
        </div>

        <div class="DSubmit">
        <p>
            <input type="submit" value="Zapisz" class="button"/>
        </p>
        </div>
    </fieldset>
}

</div>
<div class="clear">
</div>








